package org.elfen.sys.biz;

import org.elfen.sys.entity.SysUser;
import org.elfen.sys.facade.SysUserBiz;
import org.elfen.sys.proxy.SysUserProxyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;

/**
 * Dubbo服务<br>
 * 	对外提供dubbo服务实现
 * 
 */
//@Service(interfaceClass=SysUserBiz.class,version="1.0")
@Service("sysUserBizImpl")
public class SysUserBizImpl implements SysUserBiz{
	@Autowired
	private SysUserProxyService sysUserProxySerivce;

	@Override
	public SysUser updaterById(SysUser entity) {
		return sysUserProxySerivce.updaterById(entity);
	}

	@Override
	public SysUser selectUserById(Long id) {
		return sysUserProxySerivce.selectUserById(id);
	}

	@Override
	public boolean deleteById(Long id ,boolean flagDelete) {
		return sysUserProxySerivce.deleteById(id,flagDelete);
	}

	@Override
	public SysUser selectUserByUserName(String userName) {
		return sysUserProxySerivce.selectUserByUserName(userName);
	}

	@Override
	public SysUser selectUserByNick(String nick) {
		return sysUserProxySerivce.selectUserByNick(nick);
	}

	@Override
	public SysUser selectUserByQQ(String qq) {
		return sysUserProxySerivce.selectUserByQQ(qq);
	}

	@Override
	public SysUser insertUser(SysUser sysUser) {
		return sysUserProxySerivce.insertUser(sysUser);
	}

	@Override
	public SysUser selectUserByTabao(String taobao) {
		return sysUserProxySerivce.selectUserByTabao(taobao);
	}

	@Override
	public Page<SysUser> selectPage(Page<SysUser> page, SysUser user) {
		return sysUserProxySerivce.selectPage(page, user);
	}

	@Override
	public void evictCache() {
		sysUserProxySerivce.evictCache();
	}

	@Override
	public SysUser selectLastRegister() {
		return sysUserProxySerivce.selectLastRegister();
	}
}
